﻿/*
 ***************************************************************************
 * Microsoft Visual C# .NET
 * 名称：       Shpm.App.Search.Dao.SalesInfoDao
 * 类型：       DAO
 * 功能说明：   房间入住信息
 * 作者：       谈震鸣
 * 创建日期：   2007/08/22
 * 修改日期     修改者      修改内容
 * 
 * 
 * ---
 ***************************************************************************
*/
using System;
using System.Data;
using System.Collections;
using Shpm.System.Db;
using Shpm.App.Master.Bean;
using Shpm.App.Search.Bean;

namespace Shpm.App.Search.Dao
{
    public class SalesInfoDao : ShpmBaseDao
    {
        public const string FIND_BY_SALESINFO = "SalesInfo.FindBySalesInfo";
        public const string FIND_BUILDS = "SalesInfo.FindBuilds";
        public const string FIND_BUILD_DETAIL = "SalesInfo.FindBuildDetail";
        public const string FIND_BUILD_NUM = "SalesInfo.FindBuildNum";
        public const string FIND_ROOM_PERSON = "SalesInfo.FindRoomPerson";

        public const string FIND_BUILD_FLOOR = "SalesInfo.FindBuildFloor";
        public const string FIND_BUILD_ROOM = "SalesInfo.FindBuildRoom";

        public SalesInfoDao()
        {
        }

        /*
         *名称： FindBySalesInfo
         *功能： 读取房间入住信息
         *参数： paramBean
         *返回： ILIST
         *说明： 无
         */
        public IList FindBySalesInfo(SalesInfoBean paramBean)
        {
            return base.QueryForList(FIND_BY_SALESINFO, paramBean);
        }

        public IList SelectSalesInfo(string buildingNo)
        {
            SalesInfoBean paramBean = new SalesInfoBean();
            paramBean.BuildingNo = buildingNo;

            return this.FindBySalesInfo(paramBean);
        }

        public IList FindBuilds()
        {
            return base.QueryForList(FIND_BUILDS, new SalesInfoBean());
        }

        public IList FindBuildFloor(SalesInfoBean paramBean)
        {
            return base.QueryForList(FIND_BUILD_FLOOR, paramBean);
        }
        public IList FindBuildRoom(SalesInfoBean paramBean)
        {
            return base.QueryForList(FIND_BUILD_ROOM, paramBean);
        }



        public IList FindBuildDetail(SalesInfoBean paramBean)
        {
            return base.QueryForList(FIND_BUILD_DETAIL, paramBean);
        }

        public IList FindBuildNum(SalesInfoBean paramBean)
        {
            return base.QueryForList(FIND_BUILD_NUM, paramBean);
        }
        public IList FindRoomPerson(SalesInfoBean paramBean)
        {
            return base.QueryForList(FIND_ROOM_PERSON, paramBean);
        }
    }
}
